package com.meetflow.conference.mapper;

import com.meetflow.conference.domain.MeetRecord;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 我的申请Mapper接口
 *
 * @author duanjj
 * @date 2024-07-12
 */
public interface MeetRecordMapper {
    /**
     * 查询我的申请
     *
     * @param id 我的申请主键
     * @return 我的申请
     */
    public MeetRecord selectMeetRecordById(@Param("id") Long id, @Param("taskStatus") String taskStatus);

    public MeetRecord selectMeetRecordDetailById(@Param("id") Long id);

    public int updateMeetRecordProblemLevel(@Param("id") Long id, @Param("problemLevel") String problemLevel);
    public int closeMeetRecord(@Param("id") Long id);
    public int acceptanceMeetRecord(MeetRecord meetRecord);
    public List<Long> getAllRecordIds(MeetRecord meetRecord);
    public Map<String, Long> getToDoNum(@Param("userId") Long id,@Param("userLevel") String userLevel);
    /**
     * 查询我的申请列表
     *
     * @param meetRecord 我的申请
     * @return 我的申请集合
     */
    public List<MeetRecord> selectMeetRecordList(MeetRecord meetRecord);
    public List<MeetRecord> selectExportMeetRecordList(MeetRecord meetRecord);
    public List<MeetRecord> selectMeetRecordListByParam(MeetRecord meetRecord);

    /**
     * 新增我的申请
     *
     * @param meetRecord 我的申请
     * @return 结果
     */
    public int insertMeetRecord(MeetRecord meetRecord);

    /**
     * 修改我的申请
     *
     * @param meetRecord 我的申请
     * @return 结果
     */
    public int updateMeetRecord(MeetRecord meetRecord);

    /**
     * 删除我的申请
     *
     * @param id 我的申请主键
     * @return 结果
     */
    public int deleteMeetRecordById(Long id);

    /**
     * 批量删除我的申请
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteMeetRecordByIds(Long[] ids);
}
